﻿
@model List<SuperiorModel.ShopRoleModel>
@{
    ViewBag.Title = "角色管理";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<input type="hidden" id="mapRotute" map="map_RoleList" />
<div class="title_ding">

    <p id="location">
        当前位置：
        角色管理
    </p>
</div>
<div class="shopmain">
    <div class="shopbody">
        <div class="layui-card">
            @*<div class="layui-card-header">商城管理</div>*@
            <div class="layui-card-body">

                <div class="layui-form-item">
                    @*<label class="layui-form-label">版本</label>*@
                    <div class="layui-input-block" style="float:left; margin-left:0px;">
                        <button type="button" class="layui-btn" id="btn_addRole">添加角色</button>
                    </div>
                </div>
                <div class="layui-form-item layui-form-text" id="dataList">
                    <table class="layui-table" lay-filter="test">
                        <thead>
                            <tr>
                                <th>ID</th>
                                <th>角色</th>
                                <th>操作</th>
                            </tr>
                        </thead>
                        <tbody>
                            @foreach (var item in Model)
                            {
                                <tr>
                                    <td>@item.Id</td>
                                    <td>@item.RoleName</td>
                                   
                                    <td>
                                        <a class="layui-btn layui-btn-normal layui-btn-xs layui-btn-mini  editRole" href="javascript:void(0);" RoleName="@item.RoleName" OptionId="@item.Id">修改</a>
                                        <a class="layui-btn layui-btn-normal layui-btn-xs layui-btn-mini  DeleteRole" href="javascript:void(0);" OptionId="@item.Id">删除</a>
                                        <a class="layui-btn layui-btn-normal layui-btn-xs layui-btn-mini setAuthority" OptionId="@item.Id" href="javascript:void(0);">设置权限</a>
                                    </td>
                                </tr>
                            }
                        </tbody>
                    </table>
                </div>


            </div>
        </div>
    </div>
</div>

<script src="~/scripts/ShopAdmin/RoleList.js"></script>
<script>
    RoleListClass.Instance.Init();
</script>
